package javafx.table;

import java.util.ArrayList;
import java.util.List;

import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 */
public final class TableDataBean {
	private SimpleStringProperty fileName = new SimpleStringProperty();
	private SimpleDoubleProperty progress = new SimpleDoubleProperty();

	private SimpleBooleanProperty sure = new SimpleBooleanProperty(true);

	private List<Double> chartDatas = new ArrayList();
	
	private String uuid;

	public TableDataBean(String filename, double progress) {
		setFileName(filename);
		setProgress(progress);
		
		for(int i=0;i<0;i++){
			double random = Math.random()*100;
			chartDatas.add(random);
		}
		
	}

	public String getFileName() {
		return fileName.get();
	}

	public void setFileName(String fileName) {
		this.fileName.set(fileName);
	}

	public SimpleStringProperty fileNameProperty() {
		return fileName;
	}

	public double getProgress() {
		return progress.get();
	}

	public void setProgress(double progress) {
		this.progress.set(progress);
	}

	public SimpleDoubleProperty progressProperty() {
		return progress;
	}

	public String getUUID() {
		return uuid;
	}

	public void setUUID(String uuid) {
		this.uuid = uuid;
	}


	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public boolean getSure() {
		return sure.getValue();
	}

	public void setSure(boolean sure) {
		this.sure.set(sure);
	}

	public List<Double> getList() {
		return chartDatas;
	}

	public void setList(List<Double> list) {
		this.chartDatas = list;
	}
	
//	public SimpleBooleanProperty sureProperty() {
//		return sure;
//	}
	
	
	
}
